let getCookie = function(name) {
	var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
	var ss = (arr = document.cookie.match(reg))
	if (ss) {
		return unescape(arr[2]);
	}
	return null;
}
export default getCookie;
